import java.awt.Color;
import java.awt.Graphics;
import javax.swing.*;

class DrawOval extends JPanel {
	static final String keinSpieler = "nichts";
	static final String farbeBlau = "blau";
	static final String farbeGelb = "gelb";
	String feld;

	public DrawOval(String feld) {

		this.feld = feld;
	}

	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		if (feld == keinSpieler) {

			g.drawOval(0, 0, 50, 50);
		}
		if (feld.equals(farbeGelb)) {
			setForeground(Color.yellow);
			g.fillOval(0, 0, 50, 50);
		}
		if (feld.equals(farbeBlau)) {
			setForeground(Color.blue);
			g.fillOval(0, 0, 50, 50);
		}

	}

}